<meta charset="UTF-8">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h3 class="modal-title">文件上传</h3>
			</div>
			<div class="modal-body" style="height: 400px;width: 500px;padding-left: 80px;">
			
				<form action="files/addApk" method="POST" enctype="multipart/form-data" >
				 	<input type="hidden" name ="url" id="url" />
					<input type="file" name="file" id="file" class="file" />
				</form>
				
				
			</div>
			<div class="modal-footer">
			 <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
	</div>
</div>
<script>
	$('#file').fileinput({
        theme: 'fa',
        language: 'zh',
        uploadAsync: true,//异步上传
        uploadUrl: 'files/addApk',
        allowedFileExtensions: ['jpg', 'png','apk','CHM'],
        maxFileSize:0,
        maxFileCount:2
    });
	
	//异步上传成功返回的结果处理
    $('#file').on("fileuploaded", function(event,data) { 
        var response = data.response;
        //bootbox.alert(response.message);
        $('#files_table') .bootstrapTable('refresh');
        //$("#url").val(response.filePath);
       
    });

</script>